Skip to content

590 apps specific - #591

Open
Joerg Henrichs (hiker) wants to merge 6 commits into
mainfrom
590_apps_specific
Open

590 apps specific#591
Joerg Henrichs (hiker) wants to merge 6 commits into
mainfrom
590_apps_specific

Conversation

@hiker

Copy link
Copy Markdown
Collaborator

This allows lfric_atm to use lfric-atm-specific compilation option.

@github-actions github-actions Bot added the cla-required The CLA has not yet been signed by the author of this PR - added by GA label Aug 12, 2026
@hiker Joerg Henrichs (hiker) added the Ready for review Indicating that a PR is ready to be reviewed. label Aug 12, 2026
@hiker
Joerg Henrichs (hiker) requested review from a team and mo-lucy-gordon and removed request for a team August 12, 2026 10:52
@hiker

Copy link
Copy Markdown
Collaborator Author

Yaswant Pradhan (@yaswant) , Matthew Hambley (@MatthewHambley) , Sam Clarke-Green (@t00sa) - I have no idea why the CLA check failed, as far as I can see I have signed the CONTRIBUTORS file:

| GitHub Username | Real Name       | Affiliation                      |
|-----------------|-----------------|----------------------------------|
...
| hiker           | Joerg Henrichs  | Bureau of Meteorology, Australia |

With git config showing: user.name=Joerg Henrichs

Otherwise ready for review.

@yaswant

Yaswant Pradhan (yaswant) commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Yaswant Pradhan (Yaswant Pradhan (@yaswant)) , Matthew Hambley (Matthew Hambley (@MatthewHambley)) , Sam Clarke-Green (Sam Clarke-Green (@t00sa)) - I have no idea why the CLA check failed, as far as I can see I have signed the CONTRIBUTORS file:

| GitHub Username | Real Name       | Affiliation                      |
|-----------------|-----------------|----------------------------------|
...
| hiker           | Joerg Henrichs  | Bureau of Meteorology, Australia |

With git config showing: user.name=Joerg Henrichs

Otherwise ready for review.

Joerg Henrichs (@hiker) I cant see an entry for you in the https://github.com/MetOffice/fab/blob/main/CONTRIBUTORS.md?plain=1 or in your PR branch. If you update that file in your branch the check should pass.

If you have signed the CLA in a different PR, maybe that is not merge in main yet so the cla-checker cant see it? Once that PR is merged, the error should disappear.

@hiker

Copy link
Copy Markdown
Collaborator Author

Yes indeed, I looked at the wrong branch - sorry. I might just add it to all my PRs, to give you flexibility in which order to review them :) Thanks!

@github-actions github-actions Bot added cla-signed The CLA has been signed as part of this PR - added by GA and removed cla-required The CLA has not yet been signed by the author of this PR - added by GA labels Aug 12, 2026

@mo-lucy-gordon mo-lucy-gordon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some small suggested changes for the documentation file but otherwise the documentation looks good and builds correctly.

Is there a plan to change the unit tests imports that fail in later PRs?

I ran the unit test in test_fab_base.py and that produces a bunch of errors but they seem to be from previously added code, so as long as you're happy that they are still there that's fine?


Application-specific settings
=============================
Besides site-specific settings, the Fab base class also allows to use

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Besides site-specific settings, the Fab base class also allows to use
Besides site-specific settings, the Fab base class also allows

An example of this is LFRic. The infrastructure (lfric_core) repository
contains site-specific configuration. For example, they will define
the required compilation flags for files. These settings will be used
even for applications in applications in the lfric_apps repository.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
even for applications in applications in the lfric_apps repository.
even for applications in the lfric_apps repository.

But certain applications needs additional flags. For example, the
lfric_atm application will compile the UM physics code, and this require
that by default any real values are double precision (and in some cases
file-specific work arounds for compiler bugs. To avoid that the site-settings

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
file-specific work arounds for compiler bugs. To avoid that the site-settings
file-specific work arounds for compiler bugs). To avoid that the site-settings

lfric_atm application will compile the UM physics code, and this require
that by default any real values are double precision (and in some cases
file-specific work arounds for compiler bugs. To avoid that the site-settings
from lfric_core need to be duplicated, the following structure is

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from lfric_core need to be duplicated, the following structure is
from lfric_core need to be duplicated. The following structure is

def __init__(self):
...

This setup will allow to reuse site-specific setup, which can be overwritten

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This setup will allow to reuse site-specific setup, which can be overwritten
This setup will allow us to reuse site-specific setup, which can be overwritten

into the ``default`` setup.

.. important::
If there is a application-specific configuration, it is important that

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If there is a application-specific configuration, it is important that
If there is an application-specific configuration, it is important that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The CLA has been signed as part of this PR - added by GA Ready for review Indicating that a PR is ready to be reviewed.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants